package triePackage;

public class StringCoding implements IActionAtInsert{

	private int valueCounter = 1;
	
	@Override
	public Object actionInCaseOfFoundKey(Object foundValue) {
	
		return foundValue;
	}

	@Override
	public Object actionInCaseOfNotFoundKey() {
		
		return new Integer(valueCounter++);
	}

}
